// 云函数入口文件
const cloud = require('wx-server-sdk')

cloud.init()
const db=cloud.database()
const defaultList=db.collection('defaultList')
const specialConcern=db.collection('specialConcern')
// 云函数入口函数
exports.main = async (event, context) => {
  const wxContext = cloud.getWXContext()
  const _id=event._id
  const dl=await defaultList.doc(_id).remove()
  const sc=await specialConcern.doc(_id).remove()
  return {
   dl,
   sc
  } 
}